quadratic programming python